import { InferAttributes } from 'sequelize'
import { Column, DataType, Model, PrimaryKey, Table } from 'sequelize-typescript'

/**
 * 奖池表实例
 */
@Table({ tableName: 'jackpot_record', underscored: true, timestamps: false })
export class JackpotRecord extends Model<InferAttributes<JackpotRecord>> {
    @PrimaryKey
    @Column(DataType.BIGINT)
    declare id: number

    @Column(DataType.DATE)
    declare create_time: Date

    @Column(DataType.TINYINT)
    declare type: number

    @Column(DataType.STRING)
    declare uid: string
}
